package top.jiangqiang.qyblog.common.base.controller;

import jakarta.annotation.Resource;
import jakarta.servlet.http.HttpServletRequest;
import jakarta.servlet.http.HttpServletResponse;
import org.springframework.validation.annotation.Validated;
import top.jiangqiang.qyblog.common.handler.TypeConverter;

/**
 * @author Jiangqiang
 * @version 1.0
 * @date 2022/11/15 14:17
 */
@Validated //校验子类controller中的方法参数，如果方法参数是一个复杂对象，对内部进行校验需要@Valid
public class BaseController {

    @Resource
    protected HttpServletRequest request;
    @Resource
    protected HttpServletResponse response;

    @Resource
    protected TypeConverter typeConverter;

}
